package cn.iocoder.an.module.mold.controller.admin.warehouse.vo;

import com.fhs.core.trans.vo.VO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;
import cn.iocoder.an.framework.excel.core.annotations.DictFormat;
import cn.iocoder.an.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 模具仓库 Response VO")
@Data
@ExcelIgnoreUnannotated
public class WarehouseRespVO  implements VO {

    @Schema(description = "仓库id", requiredMode = Schema.RequiredMode.REQUIRED, example = "29037")
    @ExcelProperty("仓库id")
    private Long id;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("状态")
    private Integer status;

    @Schema(description = "编码")
    @ExcelProperty("编码")
    private String code;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @ExcelProperty("名称")
    private String name;

    @Schema(description = "类型id", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "类型id", converter = DictConvert.class)
    @DictFormat("mold_warehouse_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Long type;

    @Schema(description = "备注", example = "你猜")
    @ExcelProperty("备注")
    private String description;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
